"use strict";var _min=("undefined"!=typeof __min?__min:null)||_min||{};_min=function(e){function t(e,t,r){function n(e,t){var r=null;switch(t=i(e,t),e){case o.Emitter.NEW_VIDEO_EVENT:r=g();break;case o.Emitter.NEW_SCRAPE_EVENT:r=h();break;case o.Emitter.CLICK:case o.Emitter.VIEWPORT:r=d();break;case o.Emitter.URL_REPORT:case o.Emitter.DAILY_USER:r=p();break;case o.Emitter.VIDEO_VIEWS:r=c();break;case o.Emitter.CUSTOM_EVENTS:r=u();break;case o.Emitter.CROWD_SOURCE:r=l()}r.push(e,t)}function i(t,r){switch(t){case o.Emitter.VIDEO_VIEWS:r.hadImpressionSession=e.parseBool(r.hadImpressionSession),r.hadImpressionSession?visibilityAnalyticsService.setHadImpressionSession():r.hadImpressionSession=visibilityAnalyticsService.hadImpressionSession()}return r}function a(){for(var e=0;e3?i.slice(3):[],this.listeners[t]=this.listeners[t]||[],this.listeners[t].push({context:n,callback:r,isOnce:!1,args:i})},t.prototype.addEventListenerOnce=function(t,r,n){var i=e(arguments);i=i.length>3?i.slice(3):[],this.listeners[t]=this.listeners[t]||[],this.listeners[t].push({context:n,callback:r,isOnce:!0,args:i})},t.prototype.removeEventListener=function(e,t,r){if(this.listeners[e]){for(var n=this.listeners[e].length,i=[],o=0;o=0;a--){var s=i[a];if(s&&s.callback){var l=n.concat(s.args);setTimeout(s.callback.apply(s.context,l),1),o++,s.isOnce&&i.splice(a,1)}}return o},t}(),o={};o.Urls=function(){var e="https:"==window.location.protocol?1:0;return{ServerData:["http://data.minute.ly/","https://z2d7c5q4.ssl.hwcdn.net/"][e],ServerAnalytics:["http://data.minute.ly/","https://z2d7c5q4.ssl.hwcdn.net/"][e],UrlReporter:["http://counter.snackly.co/","https://counter.snackly.co/"][e],VideoData:["http://vdata.minute.ly/","https://b3g8i8r3.ssl.hwcdn.net/"][e],Configuration:["http://apv.configuration.minute.ly/","https://r7c2k6b3.ssl.hwcdn.net/"][e],Logger:["http://logger.snackly.co/","https://logger.snackly.co/"][e],Error:["http://errors.snackly.co/","https://errors.snackly.co/"][e]}}(),o.styles={},o.styles.OBJECT_FIT="object-fit",o.values={},o.values.RELATIVE="relative",o.values.ABSOLUTE="absolute",o.values.HIDDEN="hidden",o.values.COVER="cover",o.values.NONE="none",o.values.BLOCK="block",o.values.HUNDRED_PERCENT="100%",o.APVStates={Disposed:"disposed",New:"new",Blocked:"blocked",Disabled:"disabled",Active:"active"},o.config={},o.config.WindowIntervals={SCROLL:"scroll",RESIZE:"resize",URL:"url",ECHO_TIME:"echoTime",ECHO_REPEAT:"echoRepeat"},o.FLUSH_ANALYTICS=5e3,o.WindowKeys={COMPATIBILITY:"compatibility"},o.Events={WINDOW_DISPOSE:"windowDispose",TEST_MODE_READY:"testModeReady",WINDOW_SERVICE_READY:"windowServiceReady",POST_MESSAGE_RESPONSE:"postMessageResponse",VIDEOS_UPDATE:"videosUpdate",APV_DISPOSED:"apvDisposed",PLAYER_VIDEO_VIEW_CLICK:"playerVideoViewClick",APV_LOGO_CLICK:"apvLogoClick",PLAYER_FOUND:"playerFound",PLAYER_PLACEHOLDER_FOUND:"playerPlaceholderFound",PLAYER_PLAYING:"playerPlaying",PLAYER_VIDEO_CHANGED:"playerVideoChanged",IMPRESSION:"impressionAnalytics",CLIENT_INIT_ANALYTICS:"clientInitAnalyticsEvent",DAILY_USER:"dailyUserCreated",FIRST_VIDEO_VIEW:"firstVideoView",SYSTEM_RUNNING:"systemRunning",NEW_VIDEO_DATE:"newVideoData",LOAD_MORE_FOUND:"loadmorefound",AUXCLICK_EVENT:"auxclick",MESSAGE_EVENT:"message",FORCE_FIND_ELMS:"forceFindElements",INARTICLE_CLICK:"inArticleClick",MOUSE_UP:"mouseup",REGULAR_CLICK:"regularClick",CONFIG_READY:"configReady",CLICK_FROM_POINT:"clickFromPoint",URL_MANIPULATION_INTERVAL_SERVICE:"URLManipulationIntervalService",ONE_SECONDS_INTERVAL:"ONE_SECOND",THREE_SECONDS_INTERVAL:"THREE_SECONDS",IN_ARTICLE_PLACER_DISPOSED:"IN_ARTICLE_PLACER_DISPOSED"},o.playmode={VIEWPORT:"viewport",HOVER:"hover",BLOCKINGHOVER:"blockinghover"},o.Events.Element={VISIBLE:"elmVisible",NON_VISIBLE:"elmNonVisible",ANALYTICS_VISIBLE:"elmVisibleAnalytics",CLICK:"elmClick",CONTEXT_MENU_OPEN:"elmContextMenuOpen",CONTEXT_MENU_CLOSE:"elmContextMenuClose",MUTANT:"elmMutant",MOUSE_ENTER:"mouseenter",FIRST_MOUSE_ENTER:"firstmouseenter",MOUSE_LEAVE:"mouseleave",READY:"ready",UPDATE_CAROUSEL_ELEMENT:"updateCarouselContainer"},o.Events.Players={PLAYING:"playing",PAUSED:"paused",LOADED:"loaded",ENDED:"ended",ERROR:"error",AD_EVENT:"adEvent"},o.Events.DomWindow={SCROLL:"scroll",FOCUS:"focus",SAFARI_FOCUS:"safariFocus",BLUR:"blur",RESIZE:"resize",CLICK:"click",VISIBILITY_CHANGE:"visibilitychange",ORIENTATION_CHANGE:"orientationchange"},o.UrlStructure={Origin:"origin",PathName:"pathname",Search:"search",Hash:"hash"},o.NEW_VIDEO_SOURCE={MINUTE_SNIPPET:0},o.Emitter={NEW_VIDEO_EVENT:2,VIDEO_VIEWS:42,CLICK:94,DAILY_USER:93,VIEWPORT:95,NEW_SCRAPE_EVENT:97,URL_REPORT:98,CUSTOM_EVENTS:"custom_analytic",CROWD_SOURCE:"crowd_source",CONTEXT_MENU_OPEN_EVENT:4,ANALYTICS_CLICK_EVENT:0,ANALYTICS_IMPRESSION_EVENT:1,ANALYTICS_BLOCKING_DISTANCE_POTENTIAL:2,ANALYTICS_SOURCE_WEB_VIEW_GENERAL:12,ANALYTICS_SOURCE_WEB_VIEW_ANDROID:10,ANALYTICS_SOURCE_WEB_VIEW_IOS:11,ANALYTICS_SOURCE_WEB_MOBILE:2,ANALYTICS_SOURCE_WEB_DESKTOP:1,PRODUCT_APV:0,PRODUCT_IN_ARTICLE:1,CLICK_TYPE_NONE:"n",CLICK_TYPE_CLICK:"c",MINUTE_VIEWPORT_EVENT:"minute_impression"},o.Placements={VIEWPORT_IMPRESSION:1,HOVER_IMPRESSION:2},o.ReportMethods={GIF:"gif",GET:"get",POST:"post"},o.OriginalSrc={PATH:"path",ATTR:"attr"},o.integrationDataSet={ENABLE:"data-min-enable",ANCHOR:"data-min-anchor",PREVIEW:"data-min-preview",SIZE:"data-min-size",VIEWPORT_MASK:"data-min-mask",VIEWPORT_OBSERVER:"data-min-observer",METHOD:"data-min-method",SOURCE_MOBILE:"mobile",SOURCE_DESKTOP:"desktop"},o.integrationDataSetElm={METHOD:"minMethod"},o.sizeSelector={CONTAINER:"CONTAINER"},e.debug?o.Events.MINUTE_READY="minuteReady_debug":o.Events.MINUTE_READY="minuteReady",o.logoPositions={"top-left":{left:0,top:0,marginRight:"2%",marginLeft:"2%",marginTop:"2%",marginBottom:"2%"},"top-right":{right:0,top:0,marginRight:"2%",marginLeft:"2%",marginTop:"2%",marginBottom:"2%"},"bottom-left":{left:0,bottom:0,marginRight:"2%",marginLeft:"2%",marginTop:"2%",marginBottom:"2%"},"bottom-right":{right:0,bottom:0,marginRight:"2%",marginLeft:"2%",marginTop:"2%",marginBottom:"2%"}},o.StorageKeys={DailyUser:"DailyUser",HadImp:"HadImp",TestMode:"TestMode",Analytics:"Analytics",FromCamp:"FromCamp",ViewedHlts:"ViewedHlts"},o.SESSION_TTL=18e5,o.USER_TTL=2592e6,o.minuteClasses={},o.minuteClasses.CONTAINER="minute-container",o.WELCOME_TO_MINUTE_SIZE={SMALL:"small",BIG:"big",OFF:"off"},e=e,e.ver="1.17.0.97",e._publisher=e._publisher||"",e._publisherDebugUrl=e._publisherDebugUrl||"";var a={};a.publisher={},a.publisher.utils=a.publisher.utils||{};var s={};s.getDateNow=function(){return new Date},s.getTimeNow=function(){return s.getDateNow().getTime()};var l="production",c=s.getTimeNow(),u=window.performance?window.performance.timing.navigationStart:c,d=new i,p=(function(){var e=!1;return d.addEventListenerOnce(o.Events.SYSTEM_RUNNING,function(){e=!0}),function(){return e}}(),"/");"/"==p&&(p=location.hostname),function(){try{return Array.prototype.slice.call([1]),void(s.cloneArray=function(e){return Array.prototype.slice.call(e)})}catch(e){}var t=[];s.cloneArray=function(e){return t.slice.call(e)}}(),s.cloneObject=function(e){var t={};for(var r in e)if(s.isArray(e[r]))t[r]=s.cloneArray(e[r]);else if(null!==e[r])switch(typeof e[r]){case"boolean":case"number":case"string":case"undefined":t[r]=e[r];break;case"object":t[r]=s.cloneObject(e[r])}else t[r]=null;return t},s.extentObject=function(e,t){for(var r in e)if(null!==e[r]&&void 0!==e[r]||null===t[r])if(s.isArray(e[r]))t[r]=s.cloneArray(e[r]);else if(void 0!==t[r])switch(typeof e[r]){case"boolean":case"number":case"string":t[r]=e[r];break;case"object":t[r]=s.extentObject(e[r],t[r])}else t[r]=e[r];return t},s.isArray=function(e){return Array.isArray(e)},a.utils=a.utils||{},a.utils.Signal=function(){function e(e,t,r,n,i){this._listener=t,this._isOnce=r,this.context=n,this._signal=e,this._priority=i||0}function t(e,t){if("function"!=typeof e)return void s.logError("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function r(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){r.prototype.dispatch.apply(e,arguments)}}return e.prototype={active:!0,params:null,execute:function(e){var t,r;return this.active&&this._listener&&(r=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,r),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},r.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(t,r,n,i){var o,a=this._indexOfListener(t,n);if(a!==-1){if(o=this._bindings[a],o.isOnce()!==r)return void s.logError("You cannot add"+(r?"":"Once")+"() then add"+(r?"Once":"")+"() the same listener without removing the relationship first.")}else o=new e(this,t,r,n,i),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_addBinding:function(e){var t=this._bindings.length;do--t;while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var r,n=this._bindings.length;n--;)if(r=this._bindings[n],r._listener===e&&r.context===t)return n;return-1},has:function(e,t){return this._indexOfListener(e,t)!==-1},add:function(e,r,n){return t(e,"add"),this._registerListener(e,!1,r,n)},addOnce:function(e,r,n){return t(e,"addOnce"),this._registerListener(e,!0,r,n)},remove:function(e,r){t(e,"remove");var n=this._indexOfListener(e,r);return n!==-1&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,r=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=r),n){t=this._bindings.slice(),this._shouldPropagate=!0;do n--;while(t[n]&&this._shouldPropagate&&t[n].execute(r)!==!1)}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},r}();var g=function(){function e(){return 0===o&&(o=i(c-u)),o}function t(){return 0===a&&(a=i(s.getTimeNow()-u)),a}function r(){return i(s.getTimeNow()-u)}function n(){return i(s.getTimeNow()-c)}function i(e){return 100*Math.floor(e/100)}var o=0,a=0;return{getScriptTime:e,getConfigTime:t,getTimeFromGenesis:r,getTimeFromMinuteGenesis:n}}(),h={HIGHLIGHT_APVS:"highlightAPV",ENABLE_DEBUG:"enableDebug",FORCE_TEST:"forceTest",FORCE_YOUTUBE_API:"forceYtApi",DISABLE_PROD:"disableProd",BYPASS_WINDOW_LOAD:"bypassWindowLoad",ACTIVE_ALL:"activeAll",PREVENT_PAGE_LOAD:"preventPageLoad",ENABLE_BLOCKING_DISTANCE:"enableBD",ENABLE_BLOCKING_DISTANCE_DEBUG:"enableBDDebug",MINUTE_UI_TEST:"uiTest",DEBUG_VISIBILITY:"debugVisibility",FORCE_ENABLE:"forceEnable",FORCE_CONTENT_CHANGED:"forceContentChanged"},f={QUERY_PARAMS_SOURCE:"queryParams",SCRIPT_HOSTNAME:"scriptHostname",IS_PROCUTION:"isProduction"};e.debugParams={},a.utils=a.utils||{},a.utils.Debounce=function(e,t,r){function n(e){E=e||h,g("enableFilter(time="+E+")")}function i(e,t){g("setEcho(time="+e+", repeat="+t+")"),P=e||h,S=t||S}function o(){g("start");var e=arguments.length>0?s.cloneArray(arguments):y;D(e),b(e)}function a(){g("stop"),u(),_=0}function l(){g("kill"),u(),f=null,m=null,y=null,T=!0}function c(){return v>0}function u(){g("_clear"),c()&&(clearTimeout(v),v=0)}function d(e){A=e}function p(){w=!0,g("debug")}function g(e){w&&s.log("Deboucer >> "+A+" >> "+e)}var h=e,f=t,m=r||null,y=s.cloneArray(arguments).slice(3),v=0,E=0,_=0,P=0,S=1,I=0,A="",w=!1,T=!1,D=function(e){if(g("_checkTimeFilter"),!(E<=0)){var t=s.getTimeNow();0===_&&(_=t);var r=t>_+E;if(r){if(g("****** callback by _checkTimeFilter!"),T)return;if(!f)return void s.log("Debounce is dead, and timer is running... exiting");f.apply(m,e),_=t}}},b=function(e){g("_startEcho");var t=s.cloneArray(e);u(),I=0,v=setTimeout(function r(){if(I+1===S&&(t=t.concat(!0)),g("****** callback by echo!"),!T){if(!f)return void s.log("Debounce is dead, and timer is running... exiting");f.apply(m,t),I++,I0?s.cloneArray(arguments):E;w(e)}}function o(e){S=e||0}function l(){I=0}function c(){A=null,f()}function u(){f(),y=null,v=null,E=null,A=null,P.removeAllEventListener()}function d(){return 0!==_}function p(){P.addEventListener.apply(P,s.cloneArray(arguments))}function g(){P.removeEventListener.apply(P,s.cloneArray(arguments))}function h(e){y&&y.apply(v,e),0===S||I0&&(clearInterval(_),_=0)}var m=e,y=t,v=r||null,E=s.cloneArray(arguments).slice(3),_=0,P=new i,S=0,I=0,A=null,w=function(e){A=e,f(),_=setInterval(function(){h(A)},m)};return{start:n,stop:c,kill:u,reset:l,isRunning:d,setCounterLimit:o,addEventListener:p,removeEventListener:g}},a.utils.Timer.Tick="timerTick",a.utils.Timer.start=function(e){var t=new a.utils.Timer(e);return t.start(),t};var m=function(t,r,n,i,a){function s(e){D=e,b=!!r}function l(e){i&&(e.session=L.getId(),e.user=L.getUserId()),e.url=e.url||t.urls.getCurrentCanonicalURL(),e.stor=!!r}function c(e){P=e}function u(r,n){if(w){if(t.isArray(n))for(var i=0;i=P&&g()}}function p(){w=!1}function g(){if(document&&document.body){if(b&&(_=m(),_.length>0&&v([])),0===_.length||T&&!T())return void(_=[]);var e,r=_.slice();_=[];var n=!0;if("string"==typeof r&&""!==r?e=0===r.indexOf('"[{\\"')?JSON.parse(r):r:t.isArray(r)&&r.length>0?e=JSON.stringify(r):t.isArray(r)&&0===r.length?n=!1:(t.sendErrorReport("EmitterEventsCorrupt"),n=!1),!M.isDebug()&&n&&!M.isActiveAll()){var i="data="+encodeURIComponent(t.b64EncodeUnicode(e));t.sendReportByUrl(S,i,I)}t.log("Emitter Send: "+JSON.stringify(r)),t.log(r)}}function h(e){T=e}function f(e){var t=m();t.push(e),v(t)}function m(){C=!1;var e=JSON.parse(y(D)||"[]");return!e.length&&C&&t.logWarning("Another chrome tab or IFrame, sent your emitters! Try closing other chrome tabs."),C=!1,e}function y(e){if(!r)return null;try{return r.getItem(e)}catch(t){}return null}function v(e){e.length&&(C=!0),r&&r.setItem(D,JSON.stringify(e))}function E(){d.addEventListener(o.Events.THREE_SECONDS_INTERVAL,g,this)}var _=[],P=2,S=n||o.Urls.ServerData,I=a,A=t.parseBool(i,!0),w=!0,T=null,D=null,b=!1,C=!1;return{enableStorage:s,push:u,disable:p,flush:g,setValidator:h,init:E,setMasQueueLength:c}};!function(){a.reports={},a.reports.Levels={Debug:"debug",Info:"info",Warning:"warning",Error:"error"},s.sendReportByUrl=function(e,t,r){y.send(e,t,r)},s.sendLoggerReport=function(t){var r={ver:e.ver,env:l,publisher_id:e._publisher,source:N.getAnalyticsSource(),user_id:L.getUserId(),session_id:L.getId(),url:s.urls.getLocationUrl(),level:t.level||a.reports.Levels.Info,category:t.category||"general",message:"string"==typeof t?t:t.message};t.stack&&(r.stack=t.stack);var n=JSON.stringify(r);y.sendLog(n),s.log("Send report: "+n)},s.sendUserAgentLoggerReport=function(e){y.sendLog(e)},s.sendErrorReport=function(e){if(V.getIsEnableErrorReport()){var t={};"string"==typeof e?t.message=e||"empty":t.message=e.message||"empty",e.stack&&(t.stack=e.stack),t.level=a.reports.Levels.Error,s.sendLoggerReport(t)}}}(),function(){s.urls={},s.urls.removeTrailingSlash=function(e){return e&&e.length>0&&"/"==e.charAt(e.length-1)?e.substring(0,e.length-1):e},s.urls.getStructuredRawByUrl=function(){var e=document.createElement("a");return function(t,r){e.href=t;var n="",i=r||a.publisher&&a.publisher.utils&&a.publisher.utils.URL_STRUCT||[o.UrlStructure.Origin,o.UrlStructure.PathName];if(0===i.length)return t;for(var s=0;s> "+arguments[0]),window.self!==window.top&&"string"==typeof arguments[0]){var n=arguments.length>1&&"string"==typeof arguments[1]&&0===arguments[1].indexOf("color:#");arguments[0]=(n?"":"%c ")+"IFrame "+f.id+t+": "+arguments[0];var i=n?arguments[1]:"color:#"+f.color+";",o="undefined"!=typeof arguments[1]&&"string"!=typeof arguments[1]?arguments[1]:"";s.consoleNative.log(arguments[0],i,o)}else s.consoleNative.log.apply(console,arguments)}}function o(){e.debug===!0&&s.consoleNative.log.apply(console,arguments)}function a(){var e=Array.prototype.slice.call(arguments),t=e.join(" ");t="%c *** "+t;var r="color:#FFAD33;font-weight: bold;font-size:13px";s.log(t,r)}function l(){var e=Array.prototype.slice.call(arguments),t=e.join(" ");t="%c *** "+t;var r="color:#FF0000;font-weight: bold;font-size:14px";s.log(t,r)}function c(e,t,r){p.addEventListener(e,t,r)}function d(){return h}var p=new i,g=null,h=[],f={id:Math.floor(1e3*Math.random()),color:function(){function e(){return Math.floor((Math.ceil(256*Math.random())+(/^((?!chrome|android|crios).)*(safari|iphone|ipad)/i.test(navigator.userAgent)?0:255))/2)}return e().toString(16)+e().toString(16)+e().toString(16)}()};return{log:n,logObject:o,logWarning:a,logError:l,setTestGroup:t,addEventListener:c,getBuffer:d}};a.utils=a.utils||{},a.utils.logger=new t,e.logger=a.utils.logger}(),s.log=a.utils.logger.log,s.logObject=a.utils.logger.logObject,s.logWarning=a.utils.logger.logWarning,s.logError=a.utils.logger.logError,s.setTestGroup=a.utils.logger.setTestGroup,s.consoleNative=s.cleanWindowInstance.console,function(){!function(){window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""))}()}(),s.globalTasks={},s.isDebugEnabled=function(){return s.debugParamsOverrides(),e.debug},s.isNative=function(e){return/\{\s*\[native code]\s*}/.test(""+e)},s.sendBeaconNative=function(){return navigator.sendBeacon||s.cleanWindowInstance.navigator.sendBeacon?s.isNative(navigator.sendBeacon)?navigator.sendBeacon:s.isNative(s.cleanWindowInstance.navigator.sendBeacon)?s.cleanWindowInstance.navigator.sendBeacon:null:null}(),s.generateUID=function(){function e(){return Math.floor((1+Math.random())*s.getTimeNow()).toString(16).substring(1)}return e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()},s.b64EncodeUnicode=function(e){function t(e){function t(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t}var r,n,i,o,a,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",d=0;for(e=t(e);d>2,a=(3&r)<<4|n>>4,s=(15&n)<<2|i>>6,l=63&i,isNaN(n)?s=l=64:isNaN(i)&&(l=64),u=u+c.charAt(o)+c.charAt(a)+c.charAt(s)+c.charAt(l);return u}return(window.btoa||t)(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},s.timeRounder=function(e){return Math.round(10*e)/10},s.getComputedStyle=function(e){return window.getComputedStyle(e)},s.extendObject=function(e){e=e||{};for(var t=1;t0)){var r=s.parseUrlDebugParams();e.debugParams=r,"undefined"!=typeof r[h.ENABLE_DEBUG]&&(e.debug="true"==r[h.ENABLE_DEBUG]),s.parseScriptDomain()}},s.parseUrlDebugParams=function(){var e=document.createElement("a"),t={};return e.href=s.urls.getLocationUrl(),t[f.QUERY_PARAMS_SOURCE]="",r(t,"?",e.search),r(t,"#",e.hash),t},s.parseScriptDomain=function(){var t="snippet.minute.ly",r="d2d4r7w8.map2.ssl.hwcdn.net",n=s.getScriptHostname();e.debugParams[f.IS_PROCUTION]=n===t||n===r,e.debugParams[f.IS_PROCUTION]&&(n=""),e.debugParams[f.SCRIPT_HOSTNAME]=n},s.getScriptHostname=function(){var e="";if(document.currentScript){var t=document.createElement("a");t.href=document.currentScript.src,e=t.hostname}return function(){return e}}(),s.validateScraperURL=function(){if(V.isScraperEnable())if(N.isIE()||N.isEdge())s.log("** Scraper disabled on IE and Edge. **");else{if(s.isCurrentUrlFilterValid(V.getFilterScraper()))return s.log("** Validate Scraper URL is OK! **"),!0;s.log("** Scraper blocked by Filter URL. **")}else s.log("** Scraper disabled by configuration for this source **");return R.getPlayerContentDelayed().disable(),!1},s.isPlacementEnabled=function(t){return"undefined"!=typeof e.debugParams[h.ACTIVE_ALL]||s.isCurrentUrlFilterValid(V.getFilterPlacements(t))},s.isCurrentUrlFilterValid=function(e){return s.isUrlFilterValid(s.urls.getLocationUrl(),e)},s.isUrlFilterValid=function(e,t){var r=!0;0===t.white.length||s.isUrlMatchPattern(e,t.white)||(r=!1);var n=!1;return s.isUrlMatchPattern(e,t.black)&&(n=!0),r&&!n},s.isUrlMatchPattern=function(e,t){for(var r,n=0;n10&&r>10||"auto"===t.height&&"auto"===t.width)return!0;var i=e.getBoundingClientRect();return i.width>10&&i.height>10},s.parseBool=function(e,t){return"undefined"==typeof e&&"undefined"!=typeof t?t:"true"===e||e===!0},s.parsePercentValue=function(e){if(void 0===e||e===!1||"false"===e)return!1;if(e===!0||"true"===e)return!0;var t=parseInt(e,10),r=100*Math.random();return r>t},s.generateUnique=function(){return"xxxxxxxxxxxx-xxxx-4xxx-yxxxxxx-xxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,r="x"==e?t:3&t|8;return r.toString(16)})},s.generateShortUnique=function(){return"mxxxxx".replace(/[x]/g,function(e){var t=16*Math.random()|0,r="x"==e?t:3&t|8;return r.toString(16)})},s.getRequestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)};return e&&t(e),t},s.isMidnightPassed=function(e){function t(e){return new Date(e+r)}var r=6e4*s.getDateNow().getTimezoneOffset(),n=new Date(e).getTime(),i=s.getDateNow().getTime(),o=t(n),a=t(i),l=a.getYear(),c=o.getYear(),u=a.getMonth(),d=o.getMonth(),p=a.getDate(),g=o.getDate();return l0)return!1;if(0===e.length)return!0;for(var t in e)if(s.hasOwnProperty.call(e,t))return!1;return!0},s.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},s.includes=function(e,t){for(var r=0;r=200&&h.status<300?_.dispatch():P.dispatch("XHR_Complete:"+h.status)}function p(){P.dispatch("timeout")}function g(){P.dispatch("error:"+h.status)}var h,f=e.url||"",m=e.method||c,y=m===c?o:l,v=e.timeout||5e3,E=e.data,_=new a.utils.Signal,P=new a.utils.Signal,S="XHR"+d++;return{getID:t,load:r,onComplete:_,onError:P,Methods:{GET:c,POST:u}}}function t(t,r){var n=new e(t),i=function(e){p[n.getID()]=void 0,n.onComplete.removeAll(),n.onError.removeAll(),r(e)};return p[n.getID()]=n,n.onComplete.addOnce(i),n.onError.addOnce(i),n.load(),n}function r(e,r){return e.method=c,t(e,r)}function n(e,r){return e.method=u,t(e,r)}var i="Content-Type",o="image/gif",l="application/text",c="get",u="post",d=0;a.utils=a.utils||{},a.utils.ajax=a.utils.ajax||{},a.utils.ajax.XHRRequest=e;var p={};a.utils.ajax.sendGetRequest=r,a.utils.ajax.sendPostRequest=n}();var y=function(){function e(e){r(o.Urls.Logger,e,o.ReportMethods.POST)}function t(e){r(o.Urls.Error,e,o.ReportMethods.POST)}function r(e,t,r){if(!r&&V)return void p(e+"_.gif?"+t);r=r||o.ReportMethods.POST;var l=a.utils.ajax;switch(r){case o.ReportMethods.GIF:i(e,t);break;case o.ReportMethods.GET:l.sendGetRequest({url:e,data:t},n);break;case o.ReportMethods.POST:s.sendBeaconNative?s.sendBeaconNative.call(navigator,e+"_.gif",t):l.sendPostRequest({url:e,data:t},n)}}function n(e){}function i(e,t){var r=new Image;r.onload=function(){l(this)},r.onerror=function(){s.sendErrorReport("EmitterErrorContent:NoTrace"),l(this)},r.src=e+"_.gif?"+t,document.body.appendChild(r)}function l(e){try{document.body.removeChild(e)}catch(t){}}function c(){var e=V.getItem(w);e=e?JSON.parse(e):[],M=e}function u(e){for(var t=[],r=0;r-1&&M.splice(t,1)}function _(e){try{document.body.removeChild(e.image)}catch(t){}}function P(){c(),S(),d()}function S(){for(var e,t=0;tN&&(e.guid=U,e.retry=-1,!0)}function A(e){var t=!1;switch(e.state){case T:case b:t=!0;break;case C:v(e);break;case D:var r=s.getTimeNow()-e.time;r>O&&(t=!0)}t&&y(e)}var w="_minRTrs",T=0,D=1,b=2,C=3,O=2e4,N=35e3,L=5e3,R=5e3,F=20,U=s.generateUnique(),V=null,M=null,k=null;return V&&(k=new a.utils.Timer(L,P),k.start()),{send:r,sendLog:e,sendError:t}}(),v=(function(){function e(e,t){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=n.right>r.right,a=n.left=r.bottom,l=n.bottom<=r.top,c={state:i.FULLY_VISIBLE,percentage:1};return s||l?(c.percentage=0,c.state=i.HIDDEN,c):(a?c.percentage=(n.right-r.left)/n.width:o&&(c.percentage=(n.width-(n.right-r.right))/n.width),c.percentage>0&&c.percentage<1?c.state=i.ANALYTICS_VISIBLE:c.percentage<=0?c.state=i.HIDDEN:c.state=i.FULLY_VISIBLE,c.percentage=c.percentage<0?0:100*c.percentage,c)}function t(t,r){var n,a=100*o(t);if(n=0===a?i.HIDDEN:100===a?i.FULLY_VISIBLE:i.ANALYTICS_VISIBLE,r!==window&&n!==i.HIDDEN&&r){var s=e(t,r);return s.percentage0&&e.right>0&&e.top=0?l=Math.min(n.height,s.height-n.top):n.bottom>0&&(l=Math.min(s.height,n.bottom)),n.left>=0?c=Math.min(n.width,s.width-n.left):n.right>0&&(c=Math.min(s.width,n.right)),l*c/(n.height*n.width)}}();return{isElementVisible:r,getViewportState:t,getElementVisiblePercents:n,state:i}}(),function(e){function t(e){return f[e]||p(e)}function r(e,t){"undefined"!=typeof e&&n(e,t)}function n(t,r){f[t]=r,"undefined"==typeof r&&(r=""),e.setItem(t,r)}function i(){d.addEventListener(o.Events.CLIENT_INIT_ANALYTICS,function(){u()}),window.addEventListener("click",function(){u()},!1),window.addEventListener(o.Events.AUXCLICK_EVENT,function(e){e.type===o.Events.AUXCLICK_EVENT&&e.button>=2||u()},!1),d.addEventListener(o.Events.IMPRESSION,function(){u()})}function a(e){i(),f=e}function s(){Object.keys(f).forEach(function(t){e.removeItem(t)}),f={}}function l(){return t(g)}function c(){return t(h)}function u(){Object.keys(f).forEach(function(e){var r=t(e);"undefined"==typeof r&&null!==r&&n(e,f[e])})}function p(t){return f[t]=e.getItem(t),f[t]}var g="sessionId",h="uid",f={};return{get:t,set:r,reset:s,init:a,getId:l,getUserId:c}}),E=(function(){function e(){var e=new Date(s.getTimeNow()+o.SESSION_TTL).toUTCString();return s.isMidnightPassed(e)&&(e=s.calcDateNextMidnightUTC()),e}function t(){return new Date(s.getTimeNow()+o.USER_TTL).toUTCString()}function r(e){for(var t in a)if(a.hasOwnProperty(t))for(var r=a[t].keys,n=0;n=0;if(u.isOSiOS())return s(e,p.ios)>=0}return!0}function a(){return u.isDeviceDesktop()?o.Emitter.ANALYTICS_SOURCE_WEB_DESKTOP:o.Emitter.ANALYTICS_SOURCE_WEB_MOBILE}function s(e,t){for(var r=0;r<3;r++){if(e[r]t[r])return 1}return 0}function l(){return!(u.isBrowserIE()||u.isBrowserEdge())}function c(){var e=window.navigator.userAgent.toLowerCase(),t=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e);return t}var u=e,d={firefox:48,msie:99,edge:14,chrome:53,safari:9,crios:99},p={android:[4,4,4],ios:[10,3,3]},g=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(r){}return e}();return{init:n,isBrowserSupported:i,isSafari:u.isBrowserSafari,isIE:u.isBrowserIE,isEdge:u.isBrowserEdge,isFF:u.isBrowserFirefox,isObjectFitSupported:l,isMobile:u.isDeviceMobile,isDesktop:u.isDeviceDesktop,isChrome:u.isBrowserChrome,isAndroid:u.isOSAndroid,isiPad:u.isDeviceIPad,isIosSafari:u.isBrowserSafari,getAnalyticsSource:a,isLPM:u.isLPM,isDataSaverOn:u.isDataSaverOn,isDeviceTablet:c,supportsPassive:g}},P=function(){function e(e){var t=null;return t=a.publisher.Compatibility?new a.publisher.Compatibility(e):new _(e)}return{create:e}},S=function(e,t){function r(e,r,l,p){pe=e.config,ge=e.system,pe=t.extentObject(he,pe),ve=l,fe=p,me=r,Ee=r.isDesktop(),_e=r.isiPad(),n(),i(),a(),s(),c(),u(),d.dispatchEvent(o.Events.CONFIG_READY,this)}function n(){pe.general=pe.general||{},pe.general.testGroupSize=parseInt(pe.general.testGroupSize||"10"),pe.general.errorReport=t.parsePercentValue(pe.general.errorReport),pe.general.shareMinuteEvent=t.parseBool(pe.general.shareMinuteEvent,!1),pe.general.shouldWaitForLoadEvent=t.parseBool(pe.general.shouldWaitForLoadEvent,!1),pe.general.welcomeToMinuteSize=pe.general.welcomeToMinuteSize||o.WELCOME_TO_MINUTE_SIZE.BIG}function i(){pe.regularPlacer=pe.regularPlacer||{};var e=pe.regularPlacer.filter||{};e.mobile&&me.isMobile()?e=pe.regularPlacer.filter.mobile:e.desktop&&Ee&&(e=pe.regularPlacer.filter.desktop),e.white=e.white||[],e.black=e.black||[],pe.regularPlacer.filter=e,pe.regularPlacer.blockingDistance=pe.regularPlacer.blockingDistance||{},pe.regularPlacer.blockingDistance.active=t.parseBool(pe.regularPlacer.blockingDistance.active,!0),pe.regularPlacer.blockingDistance.radius=parseInt(pe.regularPlacer.blockingDistance.radius||"600"),pe.regularPlacer.blockingDistance.staticBlockersSelector=pe.regularPlacer.blockingDistance.staticBlockersSelector||"emptyElement",pe.regularPlacer.blockingDistance.enableDupVidid=t.parseBool(pe.regularPlacer.blockingDistance.enableDupVidid,!1),pe.regularPlacer.validRatio=parseFloat(pe.regularPlacer.validRatio||.9),pe.regularPlacer.showLogo=t.parseBool(pe.regularPlacer.showLogo,!0),pe.regularPlacer.logoPosition=pe.regularPlacer.logoPosition||"top-right",pe.regularPlacer.clickByPoint=t.parseBool(pe.regularPlacer.clickByPoint,!1),pe.regularPlacer.applyZIndexReorder=t.parseBool(pe.regularPlacer.applyZIndexReorder,!0),pe.regularPlacer.renderModulus=parseInt(pe.regularPlacer.renderModulus||60),pe.regularPlacer.minimumWidth=parseInt(pe.regularPlacer.minimumWidth||100),pe.regularPlacer.minimumHeight=parseInt(pe.regularPlacer.minimumHeight||50),pe.regularPlacer.watchFull=pe.regularPlacer.watchFull||{},me.isMobile()&&pe.regularPlacer.watchFull.mobile?pe.regularPlacer.watchFull=pe.regularPlacer.watchFull.mobile:Ee&&pe.regularPlacer.watchFull.desktop&&(pe.regularPlacer.watchFull=pe.regularPlacer.watchFull.desktop),pe.regularPlacer.watchFull.active=t.parseBool(pe.regularPlacer.watchFull.active,!1),pe.regularPlacer.watchFull.active&&(pe.regularPlacer.watchFull.minimumWidth=parseInt(pe.regularPlacer.watchFull.minimumWidth||500),pe.regularPlacer.watchFull.text=pe.regularPlacer.watchFull.text||"Watch Full Video",pe.regularPlacer.watchFull.position=pe.regularPlacer.watchFull.position||["bottom","left"]),me.isiPad()||me.isMobile()?pe.regularPlacer.playmode=o.playmode.VIEWPORT:pe.regularPlacer.playmode="hover"==pe.regularPlacer.playmode?o.playmode.HOVER:o.playmode.VIEWPORT,pe.regularPlacer.maxApvsPerPage=parseInt(pe.regularPlacer.maxApvsPerPage||999),pe.regularPlacer.noDuplicateVideos=t.parseBool(pe.regularPlacer.noDuplicateVideos,!1),pe.regularPlacer.trackSize=t.parseBool(pe.regularPlacer.trackSize,!0),pe.regularPlacer.disableParentTransfrom=t.parseBool(pe.regularPlacer.disableParentTransform,!1)}function a(){pe.inArticlePlacer=pe.inArticlePlacer||{},Ee&&pe.inArticlePlacer.desktop?pe.inArticlePlacer=pe.inArticlePlacer.desktop:!Ee&&pe.inArticlePlacer.mobile&&(pe.inArticlePlacer=pe.inArticlePlacer.mobile),pe.inArticlePlacer.active=t.parseBool(pe.inArticlePlacer.active,!1),pe.inArticlePlacer.showLogo=t.parseBool(pe.inArticlePlacer.showLogo,!0),pe.inArticlePlacer.logoPosition=pe.inArticlePlacer.logoPosition||"top-right",pe.inArticlePlacer.viewportMask=pe.inArticlePlacer.viewportMask||"emptySelector",pe.inArticlePlacer.filter=pe.inArticlePlacer.filter||{},pe.inArticlePlacer.filter.white=pe.inArticlePlacer.filter.white||[],pe.inArticlePlacer.filter.black=pe.inArticlePlacer.filter.black||[],pe.inArticlePlacer.watchFull=pe.inArticlePlacer.watchFull||{},pe.inArticlePlacer.watchFull.active=t.parseBool(pe.inArticlePlacer.watchFull.active,!1),pe.inArticlePlacer.watchFull.active&&(pe.inArticlePlacer.watchFull.minimumWidth=parseInt(pe.inArticlePlacer.watchFull.minimumWidth||500),pe.inArticlePlacer.watchFull.text=pe.inArticlePlacer.watchFull.text||"Watch Full Video",pe.inArticlePlacer.watchFull.position=pe.inArticlePlacer.watchFull.position||["bottom","left"])}function s(){pe.scraper=pe.scraper||{},pe.scraper.filter=pe.scraper.filter||{},pe.scraper.filter.white=pe.scraper.filter.white||[],pe.scraper.filter.black=pe.scraper.filter.black||[],pe.scraper.enableEventCollection=t.parseBool(pe.scraper.enableEventCollection,!1),pe.scraper.type2=t.parseBool(pe.scraper.type2,!1),pe.scraper.IAContainers=pe.scraper.IAContainers||"emptySelector",pe.scraper.featuredWrapper=pe.scraper.featuredWrapper||null,pe.scraper.autopush&&t.isArray(pe.scraper.autopush)?pe.scraper.autopush=pe.scraper.autopush:pe.scraper.autopush=[]}function l(){return document.querySelector(pe.inArticlePlacer.viewportMask)||window}function c(){ge.rezVideo||(ge.rezVideo={s:100,m:200,l:300})}function u(){pe.metadataEnhancer=pe.metadataEnhancer||{},pe.metadataEnhancer.publishedAt=pe.metadataEnhancer.publishedAt||{},pe.metadataEnhancer.tags=pe.metadataEnhancer.tags||{}}function p(){return ye}function g(){return"number"!=typeof ye&&(ye=ye.replace("MIN-","")),parseInt(ye)}function h(){return pe.scraper.filter}function f(e){return e==o.Emitter.PRODUCT_IN_ARTICLE?pe.inArticlePlacer.filter:pe.regularPlacer.filter}function m(){return ge.rezVideo}function y(){return ge.rezVertical}function v(){return Ee&&!_e}function E(){return pe.scraper.enableEventCollection}function _(){return pe.scraper.type2}function P(){return pe.scraper.IAContainers}function S(){return pe.scraper.featuredWrapper}function I(){return 50}function A(){return 1}function w(){return 1}function T(){return pe.regularPlacer.blockingDistance.staticBlockersSelector}function D(){return 10}function b(){return pe.general.testGroupSize}function C(){return"opacity 0.5s ease-out"}function O(){return!!t.sendBeaconNative&&!me.isEdge()}function N(){return pe.placements||[]}function L(){return"Optimized by minute.ly"}function R(){return ge.baseVideoUrl||""}function F(){return pe.general.errorReport}function U(){return pe.inArticlePlacer.active}function V(){return pe.inArticlePlacer.showLogo}function M(){return pe.inArticlePlacer.logoPosition}function k(){return pe.regularPlacer.maxApvsPerPage}function B(){return pe.regularPlacer.minimumWidth}function x(){return pe.regularPlacer.minimumHeight}function W(){return pe.regularPlacer.validRatio}function H(){return pe.regularPlacer.logoPosition}function G(){return pe.regularPlacer.renderModulus}function Y(){return pe.regularPlacer.applyZIndexReorder}function j(){return pe.regularPlacer.showLogo}function J(){return pe.regularPlacer.watchFull}function q(){return pe.regularPlacer.disableParentTransform}function z(){return pe.regularPlacer.playerTransformScale}function K(){return pe.regularPlacer.containerTransformScale}function X(){return pe.inArticlePlacer.watchFull}function Z(){return pe.regularPlacer.blockingDistance.radius}function Q(){return pe.regularPlacer.clickByPoint}function $(){return ge.server_version}function ee(){return"https://minute.ly"}function te(){return pe.general.shareMinuteEvent}function re(e){if(me.isMobile())return o.playmode.VIEWPORT;var t=pe.regularPlacer.playmode;e===o.Emitter.PRODUCT_IN_ARTICLE&&(t=pe.inArticlePlacer.playmode);var r=Object.keys(o.playmode).map(function(e){return o.playmode[e]});return r.indexOf(t)===-1?o.playmode.VIEWPORT:t}function ne(){return pe.general.shouldWaitForLoadEvent}function ie(){return pe.regularPlacer.noDuplicateVideos}function oe(){return pe.regularPlacer.blockingDistance.active}function ae(){return t.parseBool(pe.regularPlacer.ignoreShouldRender,!1)}function se(){return pe.scraper.autopush}function le(){return pe.regularPlacer.trackSize}function ce(){return pe.general.welcomeToMinuteSize}function ue(){return pe.metadataEnhancer.publishedAt}function de(){return pe.metadataEnhancer.tags}var pe={},ge={},he={},fe=null,me=null,ye=e._publisher,ve=null,Ee=null,_e=null;return{init:r,getFilterPlacements:f,getStaticBlockerSelector:T,getEpsilonPercentage:D,getMaxApvsPerPage:k,getMinimumWidth:B,getMinimumHeight:x,getValidRatio:W,getLogoPosition:H,getRenderModulus:G,shouldApplyZIndexReorder:Y,getShowLogo:j,getRegularPlacerWatchFullSettings:J,isClickByPointEnabled:Q,getBlockingDistanceRadius:Z,noDuplicateVideos:ie,isBlockingServiceActive:oe,shouldTrackSize:le,getDisableParentTransform:q,getRegularPlacerPlayerTransformScale:z,getRegularPlacerContainerTransformScale:K,getTestGroupSize:b,getIsEnableErrorReport:F,shareMinuteEvent:te,shouldWaitForLoadEvent:ne,getPublisherId:p,getPublisherIdNumber:g,getRezVideo:m,getRezVertical:y,getViewportAnalyticsPercentage:I,getViewportAnalyticsTimeSpan:A,getViewportPercentage:w,getEffectApvTransitionVideo:C,getCanReportImmediately:O,getTooltip:L,getBaseVideoUrl:R,getRelativePlacements:N,getServerVersion:$,getBaseLinkUrl:ee,getPlaymode:re,isInArticlePlacerActive:U,getInArticleViewportMask:l,getInArticleShowLogo:V,getInArticleLogoPosition:M,getInArticlePlacerWatchFullSettings:X,getIgnoreShouldRender:ae,isScraperEnable:v,getFilterScraper:h,isScraperEnableEventCollection:E,getScraperType2:_,getIAContainers:P,getFeaturedWrapper:S,getAutopushCriteria:se,getWelcomeToMinuteSize:ce,getPublishedAtConfig:ue,getTagsConfig:de}},I=function(t,r,n,i,a){function s(e,t){return t+"_"+e}function l(e,t,r){e[t]?e[t].push(r):e[t]=[r]}function c(e){for(var r,n=0;n1&&t.logError("Not suppose to get multiple publisher video id in the same Article Url."),i[0]):null}function _(e,r){r=r||t.urls.getCurrentCanonicalURL();var n=s(e,r),i=O[n];return i&&0!==i.length?(i.length>1&&t.logError("Not suppose to get multiple publisher video id in the same Article Url."),i[0]):null}function P(e){return i.create({id:0,videoId:e,articleUrl:t.urls.getCurrentCanonicalURL(),doesCollect:!1,highlights:[]},!0)}function S(e){var t=Object.keys(C).filter(function(t){return t.indexOf(e)>=0})[0];return t?C[t][0]:null}var I,A=-2,w=[],T=A,D=[],b={},C={},O={};return{init:u,isDebug:g,appendVideos:p,isActiveAll:f,getArticlesListLength:m,getRegularArticleDataByURL:v,generateArticleData:P,hasInArticleArticleDataForUrl:y,getInArticleArticleData:E,getCrowdSourceArticleData:_,getInArticleArticleDataByVideo:S}},A=function(e,t,r,n){function i(){return Math.floor(100*Math.random()+1)<=E}function a(){if(1==t.__minNoTestMode)return m=!1,n.setItem(g,!1),void e.logWarning("Owl no test mode!");var i="undefined"!=typeof r;if(i){if("clear"!==r)return m="true"==r,n.setItem(g,!0),void e.log("Force test group: "+m);e.log("Force RESET test group"),n.removeItem(g)}else;m=s(),y||(e.log("** Is Test Group: "+m),y=!0)}function s(){var t=n.getItem(g);if(!t||e.isMidnightPassed(t[h])){var r=i();return n.setItem(g,{timeStamp:e.getTimeNow(),TestMode:r}),r}return t[g]}function l(e,t){E=e,v=f.READY,a()}function c(){return v===f.READY}function u(){return m}function d(){return m===!0?"1":"0"}function p(){m=null,y=!1,v=f.NONE,E=null,L.reset()}var g=o.StorageKeys.TestMode,h="timeStamp",f={NONE:0,PENDING:1,READY:2},m=null,y=!1,v=f.NONE,E=null;return{init:l,isReady:c,isTestGroup:u,getGroupCode:d,reset:p}},w=function(e,t,r){function n(t){if(t&&r.shareMinuteEvent()){var n=t.apvData&&t.apvData.getBelongToUrl()||e.urls.getCurrentCanonicalURL(),i={url:n,target_url:t.apvData._rawAnchorValue||t.articleData.getArticleUrl(),test_group:F.isTestGroup(),minute_apv_id:t.apvData.getHighlightId()};if(!t.apvData.uniq){var a=new CustomEvent(o.Emitter.MINUTE_VIEWPORT_EVENT,{detail:i});window.dispatchEvent(a)}}}return{dispatchImpression:n}},T=function(){function t(t){var r={id:e._publisher,user_agent:navigator.userAgent,uniq:t,test_mode:F.isTestGroup(),url:s.urls.getCurrentCanonicalURL(),referrer:document.referrer.substr(0,200),source:N.getAnalyticsSource(),comp:N.isBrowserSupported(),stor:!!b,script_time:g.getScriptTime(),config_time:g.getConfigTime(),event_time_from_genesis:g.getTimeFromGenesis(),event_time_from_minute_genesis:g.getTimeFromMinuteGenesis()};R.send(o.Emitter.URL_REPORT,s.cloneObject(r)),t&&(r.uniq=!1,R.send(o.Emitter.URL_REPORT,r)),d.dispatchEvent(o.Events.CLIENT_INIT_ANALYTICS)}function r(){n=!1,L.get(i)||(L.set(i,!0),n=!0),t(n)}var n,i="SessionSent";return{sendUrlReport:r}}(),D=function(t,r,n,i,a,s){function l(){var i={id:e._publisher,user_agent:navigator.userAgent,test_mode:r.isTestGroup(),url:t.urls.getCurrentCanonicalURL(),referrer:document.referrer.substr(0,200),source:n.getAnalyticsSource(),comp:n.isBrowserSupported(),stor:!0,script_time:a.getScriptTime(),config_time:a.getConfigTime(),event_time_from_genesis:a.getTimeFromGenesis(),event_time_from_minute_genesis:a.getTimeFromMinuteGenesis(),daily_user:s.getUserId()};R.send(o.Emitter.DAILY_USER,i)}function c(){var e=i.getItem(o.StorageKeys.DailyUser);e&&!t.isMidnightPassed(e)||(l(),i.setItem(o.StorageKeys.DailyUser,t.getTimeNow()),d.dispatchEvent(o.Events.DAILY_USER))}return{start:c}};!function(){function e(){function e(e){var t=e.getSubType?e.getSubType():a.scrap.player.SubTypes.DEFAULT;g[e.getType()]=g[e.getType()]||{},g[e.getType()][t]=e}function t(e){var t=Object.keys(a.scrap.PlayersNameEnum).map(function(e){return a.scrap.PlayersNameEnum[e]});t.indexOf(e.getName())!=-1&&(f[e.getName()]=e)}function r(e){return f[e]}function n(e,t){return g[e]&&g[e][t||a.scrap.player.SubTypes.DEFAULT]}function i(){return g}function o(){return f}function s(){return Object.keys(g)}function l(e){var t=Object.keys(a.scrap.REGISTRED_DRIVERS);t.indexOf(e.getName())>-1&&(h[e.getName()]=e)}function c(e){return h[e]}function u(){return m}function d(e){m[e.getName()]=e}function p(e){return m[e]}var g={},h={},f={},m={};return{addItem:e,addDetector:t,getDetector:r,getAllRegisterdDetectors:o,getItem:n,addDriver:l,getDriver:c,getAllItemTypes:s,getAllRegisterdItem:i,addPicker:d,getPicker:p,getAllRegisteredPickers:u}}a.scrap=a.scrap||{},a.scrap.utils=a.scrap.utils||{},a.scrap.player=a.scrap.player||{},a.scrap.detector=a.scrap.detector||{},a.scrap.driver=a.scrap.driver||{},a.scrap.picker=a.scrap.picker||{},a.scrap.plugin=a.scrap.plugin||{},a.scrap.utils.defineError=function(e,t,r){r=r?" "+r:"",s.logError("Scraper "+(e?"'"+e.getName()+"' ":"")+"'"+t+"' Not Defined."+r)},a.scrap.REGISTRED_DRIVERS=JSON.parse("{}"),a.scrap.PlayersNameEnum=JSON.parse('{"Jwplayer":"Jwplayer"}'),a.scrap.PlayerEnum={DEFAULT:99,DEFAULT_99:99,Flowplayer:1,OOYALA:2,YOUTUBE:6,DailyMotion:6,Jwplayer:8,VideoJSIFrame:12,VideoJS:13,NBA:15,Edge:17,ThePlatformFoxSports:26,ThePlatformBravo:29,NFL:32,ThePlatformCnbc:33,CINCOPA:34,VjsNew:36,Channel10:37,MLB:39,EdgeBrightcove:39,CBSsports:40,WsbtvAnvato:41,JWFox:6,ZEE5:43,Vidible:44,DUMONT:46,MMM:47,Fotbolls:48,MLB_FORGE:49,MAGENTA:50,ESPORT:51,ELEAGUE:52,Telecine:53,WWE:54,UFC:55,GLOMEX:56,MOTORSPORT:6,VideoJSPethnow:13,NBC_Chicago:57,Motor1:6,VideoJSPethnow:13,Gray:99,Krone:99,Calcalist:99,USAToday:99,JwplayerArmstrong:8,Telemoundo:6,FoxSportsAU:99,TaboolaWionews:99,JwplayerCycling:8,Essence:99,JwplayerGolfChannel:99,NFLTheoPlayer:99,MorganPost:99,JwplayerSport1:99,Mynet:6,JwplayerTaboolaAajtak:99,Connatix:6,FIFA:58,Alpin:59,Asianet:6,KalturaGofeminin:99,USOpenNext:6,TOnline:6,Sanook:6};var t=a.scrap.ScrapPlugin={VIDEO_VIEW:1,VISUAL_CLICKS:3,PLAYER_CONTENT_CHANGED:5,PLAYER_FOUND:7,PLACEHOLDER_FOUND:8,PLAYER_VIDEO_CHANGED:9};a.scrap.ScrapPluginAll=[t.VIDEO_VIEW,t.VISUAL_CLICKS,t.PLAYER_FOUND,t.PLACEHOLDER_FOUND,t.PLAYER_VIDEO_CHANGED],a.scrap.player.SubTypes={DEFAULT:"default"},a.scrap.driver={},a.scrap.driver.PlayerAction={NONE:"none",PLAYING:"playing",PAUSED:"paused",BUFFERING:"buffering",ERROR:"error",ENDED:"ended",SEEK_START:"seekStart",SEEK_END:"seekEnd",VOLUME_CHANGE:"volume",MUTE_CHANGE:"mute",FULLSCREEN:"fullscreen",NEW_VIDEO:"newVideo",REPLAY:"replay",FOCUS:"focus"},a.scrap.utils={},a.scrap.utils.roundValue=function(e){return Math.round(1e3*e)/1e3},a.scrap.consts={VOLUME_EMPTY:-2,TIME_EMPTY:-1},a.scrap.factory=function(){var t=new e,r=new e,n=new e,i=new e;return{addPlugin:n.addItem,getPlugin:n.getItem,addDetector:t.addDetector,getDetector:t.getDetector,getAllRegisterdDetectors:t.getAllRegisterdDetectors,addDriver:r.addDriver,getDriver:r.getDriver,addPicker:i.addPicker,getPicker:i.getPicker,getAllRegisteredPickers:i.getAllRegisteredPickers}}()}(),function(){function e(){}var t=a.scrap.utils.defineError;e.shouldRun=function(){return!0},e.prototype.getType=function(){t(null,"getType")},e.prototype.setPlayerCollection=function(e){},e.prototype.addDriver=function(e){},a.scrap.plugin.Base=e}(),function(){function e(){this._playerOnHold={},d.addEventListener(o.Events.VIDEOS_UPDATE,this.handleVideosUpdate.bind(this))}s["extends"](e,a.scrap.plugin.Base),e.getType=function(){return a.scrap.ScrapPlugin.PLACEHOLDER_FOUND},e.getName=function(){return"PlaceholderFound"},e.prototype.getType=function(){return e.getType()},e.prototype.setPlayerCollection=function(e){e.onPlayerPlaceholderFound().add(this.handleDetector_PlayerPlaceholderFound,this)},e.prototype.handleVideosUpdate=function(){for(var e=Object.keys(this._playerOnHold),t=0;t720)return void s.logWarning("Duration longer than 12 minutes! Scraping canceled!");this.setFeatureFlag(e),this._currentScraperData=e,this.sendPlayerFeaturedInstanceFound()}},e.prototype.handleDriver_PlayerInstanceFound=function(e){this.handleDetector_PlayerInstanceFound(e)},e.prototype.getAllPlayersContainer=function(){if(t.getIAContainers)return t.getIAContainers();for(var e=document.querySelectorAll(V.getIAContainers()),r=[],n=0;n-1||this._placeholderFoundList.push(r)}},e.prototype.setTopMostContainer=function(){if(this._setPlayersPlaceholderList(),0==this._placeholderFoundList.length)return void s.logWarning("No places were set to the picker to choose from");this._topMostPlaceholder=this._placeholderFoundList[0];for(var e=1;el}var c=!0,u=[];Array.isArray(n.tags)&&(u=n.tags);for(var d=0;d0&&this._getVideoStream(o.JSplayer)&&(e.players.push(o),e.hasFound=!0)}return e},e.prototype._collectScraperDataList=function(e){for(var t=0;t0)return"";var o=i&&0===i.indexOf("//");return o?location.protocol+i:i},e.prototype._getPlayerPlaceholder=function(e,t){return e.getContainer()},e.prototype._getVideoTitle=function(e){if(t&&t._getVideoTitle)return t._getVideoTitle(e);var r=e.getPlaylist(),n=e.getPlaylistIndex(),i=r&&r[n]&&r[n].title||document.title,o=document.createElement("textarea");return o.innerHTML=i,i=o.value},e.prototype._getIsLive=function(e,t){return!!t&&t.classList.contains("jw-flag-live")},a.scrap.detector.Jwplayer=e,a.scrap.factory.addDetector(e)}(),function(){function e(){}e.prototype.getPayloadMetaData=function(e){var t={},r=this.getPublishedAt(e);return r&&!isNaN(r)&&(t.published_at=r,10===(""+t.published_at).length&&(t.published_at=1e3*t.published_at)),t.tags=this.getPageTags(e),t.video_metadata=this.getVideoMeta(e),t},e.prototype.getPageTags=function(e){if(this.getTagsAtByConfig())return this.getTagsAtByConfig();var t=this.getTags(e);return"string"!=typeof t&&(t=JSON.stringify(t)),t},e.prototype.getPublishedAtByConfig=function(){var e=V.getPublishedAtConfig().keyword,t=V.getPublishedAtConfig().selector;return e&&this.publishedAtFromKeyword(e)?this.publishedAtFromKeyword(e):t&&this.publishedAtFromDom(t)?this.publishedAtFromDom(t):void 0},e.prototype.getTagsAtByConfig=function(){var e=V.getTagsConfig().selector;if(e){for(var t=[],r=document.querySelectorAll(e),n=0;n0&&p()):p()}function p(){if(!E){_=performance.now();var e=_-m;if(E=!0,g(),d.dispatchEvent(o.Events.SYSTEM_RUNNING),V.shouldWaitForLoadEvent()&&e>.2){s.log("core delayed: "+e);var t={url:encodeURIComponent(s.urls.getLocationUrl()),user_agent:navigator.userAgent,source:N.getAnalyticsSource(),publisher:V.getPublisherIdNumber(),category:"CoreDelayed",action:"Delayed",label:"seconds",value:Math.round(e)};R.send(o.Emitter.CUSTOM_EVENTS,t)}}}function g(){y||(y=new a.scrap.ScraperService,s.log("Detector created"))}var m,y=null,v=null,E=!1,_=0;setTimeout(t,0)};new k;return e}}(window._minDebug||_min||{});